﻿using Microsoft.Extensions.Configuration;

namespace Student.Common
{
    public class AppSettingsHelper
    {
        public static IConfiguration Configuration { get; set; }

        static AppSettingsHelper()
        {
#if DEBUG
            string path = "appsettings.Development.json";
#else
            string path = "appsettings.json";
#endif
            Configuration = new ConfigurationBuilder()
                .AddJsonFile(path)
                .Build();
        }
    }
}
